<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <div class="fly-tab">
                <span>
                    <a href="/jie/">
                        全部
                    </a>
                    <a href="/jie/unsolved/">
                        未结帖
                    </a>
                    <a href="/jie/solved/">
                        已采纳
                    </a>
                    <a href="/jie/wonderful/">
                        精帖
                    </a>
                    <a href="/user/">
                        我的帖
                    </a>
                </span>
                <form action="{:U('home/s/index')}" class="fly-search">
                    <i class="iconfont icon-sousuo">
                    </i>
                    <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                    type="text" name="w">
                </form>
                <a href="{:U('home/question/add')}" class="layui-btn jie-add">
                    发布问题
                </a>
            </div>
            <ul class="fly-list">
                <?php foreach ($q as $list) { ?>
                <li class="fly-list-li">
                    <a href="/u/1535352" class="fly-list-avatar">
                        <img src="__ROOT__/<?php echo $list['face'] ?>" alt="lostincoding">
                    </a>
                    <h2 class="fly-tip">
                        <a href="{:U('home/question/index',array('id'=>$list['id']))}">
                            <?php echo $list['title'] ?>
                        </a>

                        <?php if(strstr($list['status'], "置顶")) { ?>
                            <span class="fly-tip-stick">
                                置顶
                            </span>

                        <?php }?>
                        <?php if(strstr($list['status'], "精华")) { ?>
                            <span class="fly-tip-jing">
                            精帖
                            </span>

                        <?php }?>
                        
                        
                    </h2>
                    <p>
                        <span>
                            <a href="/u/1535352">
                                <?php echo $list['nikename'] ?>
                            </a>
                        </span>
                        <span>
                            <?php echo getFormate($list['create_time']) ?>
                        </span>
                        <span>
                            <?php echo $list['cname'] ?>
                        </span>
                        <span class="fly-list-hint">
                            <i class="iconfont" title="回答">
                                
                            </i>
                            <?php echo $list['answer_num'] ?>
                            <i class="iconfont" title="人气">
                                
                            </i>
                            <?php echo $list['view_num'] ?>
                        </span>
                    </p>
                </li>
                <?php } ?>
            </ul>
            <div style="text-align: center">
               <!--  <div class="laypage-main">
                    <a href="/jie/page/2/" class="laypage-next">
                        更多求解
                    </a>

                </div> -->
                <style type="text/css">
                    .xbs-pages{
                        margin-top: 20px;
                    }
                    .xbs-pages div a,.xbs-pages div span{
                        display: inline-block;
                        padding: 5px 10px;
                        margin-right: 5px;
                        border: 1px solid #1AA094;
                    }
                    .xbs-pages div span{
                        background: #1AA094 url() 0 0 no-repeat;
                        color: #fff;
                    }
                </style>
                <div class="xbs-pages">
                    <?php echo $page ?>
                </div>
                
            </div>
        </div>
    </div>
    <div class="edge">
        <h3 class="page-title">
            最近一月回答榜 - TOP 12
        </h3>
        <div class="user-looklog leifeng-rank">
            <span>
                <?php foreach ($users as $user) { ?>
                <a href="{:U('home/u/index',array('uid'=>$user['id']))}">
                    <img src="__ROOT__/<?php echo $user['face'] ?>">
                    <cite>
                        <?php echo $user['nikename'] ?>
                    </cite>
                    <i>
                        <?php echo $user['cn'] ?>次回答
                    </i>
                </a>
                <?php } ?>
            </span>
        </div>
        <h3 class="page-title">
            最近热帖
        </h3>
        <ol class="fly-list-one">
            <?php foreach ($hots as  $hot) { ?>
                <li>
                <a href="/jie/6190.html">
                    <?php echo $hot['title'] ?>
                </a>
                <span>
                    <i class="iconfont">
                        
                    </i>
                    <?php echo $hot['answer_num'] ?>
                </span>
            </li>
            <?php } ?>
        </ol>
        <h3 class="page-title">
            近期热议
        </h3>
        <ol class="fly-list-one">
            <li>
                <a href="/jie/6190.html">
                    目前授权LayIM 3.0可附赠一套Nifty Admin后台模版管理系统
                </a>
                <span>
                    <i class="iconfont">
                        
                    </i>
                    20
                </span>
            </li>
        </ol>
        <div class="fly-link">
            <span>
                友情链接：
            </span>
            <a href="http://layim.layui.com/" target="_blank">
                LayIM
            </a>
        </div>
    </div>
</div>